﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Prism.Regions;
using ModulesInfrastructure;
using ModuleMock.ViewModels;
using ModuleMock.Views;
using ShellInfrastructure;

namespace ModuleMock
{
    public class MockModule: SharedModule
    {
        protected override void RegisterViewsInRegions()
        {
            RegionManager.RegisterViewWithRegion(RegionNames.RightRegionName, () => UnityContainer.Resolve<IMockView>());
          //  RegionManager.RegisterViewWithRegion(RegionNames.LeftRegionName, () => UnityContainer.Resolve<IMockView>());
        }
        protected override void RegisterTypesDependencies()
        {
            UnityContainer.RegisterType<IMockView, MockView>(new ContainerControlledLifetimeManager());
            UnityContainer.RegisterType<IMockViewModel, MockViewModel>(new ContainerControlledLifetimeManager());

        }
    }
}
